package com.class3.team.fossilProject.entity;

import java.io.Serializable;

import javax.persistence.*;

@Entity
@Table(name = "book")
public class Book implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name = "bookId")
	private Integer bookId;
	
	@Column(name = "phylum")
	private String phylum;
	
	@Column(name = "className")
	private String className;
	
	@Column(name = "orderName")
	private String orderName;
	
	@Column(name = "family")
	private String family;
	
	@Column(name = "genus")
	private String genus;
	
	public Integer getBookId() {
		return bookId;
	}

	public void setBookId(Integer bookId) {
		this.bookId = bookId;
	}

	@Column(name = "species")
	private String species;
	



	public String getPhylum() {
		return phylum;
	}

	public void setPhylum(String phylum) {
		this.phylum = phylum;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getOrderName() {
		return orderName;
	}

	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}

	public String getFamily() {
		return family;
	}

	public void setFamily(String family) {
		this.family = family;
	}

	public String getGenus() {
		return genus;
	}

	public void setGenus(String genus) {
		this.genus = genus;
	}

	public String getSpecies() {
		return species;
	}

	public void setSpecies(String species) {
		this.species = species;
	}

	public String  getModernLongitude() {
		return modernLongitude;
	}

	public void setModernLongitude(String  modernLongitude) {
		this.modernLongitude = modernLongitude;
	}

	public String  getModernLatitude() {
		return modernLatitude;
	}

	public void setModernLatitude(String modernLatitude) {
		this.modernLatitude = modernLatitude;
	}

	public Integer getStartYear() {
		return startYear;
	}

	public void setStartYear(Integer startYear) {
		this.startYear = startYear;
	}

	public Integer getEndYear() {
		return endYear;
	}

	public void setEndYear(Integer endYear) {
		this.endYear = endYear;
	}

	@Column(name = "modernLongitude")
	private String  modernLongitude;

	@Column(name = "modernLatitude")
	private String  modernLatitude;

	@Column(name = "startYear")
	private Integer startYear;

	@Column(name = "endYear")
	private Integer endYear;

	@Transient
	private Integer count;

	public Integer getCount(){
		return this.count;
	}

	public void setCount(int count){
		this.count=count;
	}
}
